﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CompanyEdit.aspx.cs" Inherits="Main_Company_CompanyEdit"
    Culture="en-GB" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Src="~/User Controls/PageHeading.ascx" TagName="heading" TagPrefix="acc" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Edit Company</title>
    <link href="../../Styles/accounts.css" rel="Stylesheet" type="text/css" />
    <link href="../../Styles/HorizontalTab.css" rel="stylesheet" type="text/css" />

    <script src="../../JavaScript/Commons.js" type="text/javascript"></script>

    <script src="../../JavaScript/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="../../JavaScript/HorizontalTab.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true">
        </asp:ScriptManager>
        <div class="divmain">
            <acc:heading ID="pagehead" runat="server" HeadingText="Company Details" />
        </div>
        <div style="margin-left: 30%">
            <asp:Label ID="lblMsg" runat="server" Font-Bold="true"></asp:Label></div>
        <div id="wrapper">
            <ul class="tabs">
                <li><a href="javascript:void(0)" class="defaulttab" rel="tabs1">Company Information</a></li>
                <li><a href="javascript:void(0)" rel="tabs2">Contact Details</a></li>
                <li><a href="javascript:void(0)" rel="tabs3">Registration Details</a></li>
            </ul>
            <div class="tab-content" id="tabs1">
                <table class="tablecontent" style="width: 100%;">
                    <tr>
                        <td class="headtd" colspan="2">
                            Company Details
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Company Name <span class="required">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="TextCompanyName" runat="server" CssClass="input" ToolTip="Enter Company Name" />
                        </td>
                    </tr>
                    <tr>
               
                        <td>
                            Trading Name<span class="required">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="TxtTradingName" runat="server" ToolTip="Enter Trading Name" CssClass="input" />
                            <asp:RequiredFieldValidator ID="RFVTradingName" runat="server" ValidationGroup="CompanyInfo"
                                ControlToValidate="TxtTradingName" ErrorMessage="Provide Trading Name" />
                        </td>
                    </tr>                    
                    <tr>
                        <td>
                            Company Logo
                        </td>
                        <td>
                            <asp:FileUpload ID="Fld" runat="server" size="7" />
                        </td>
                    </tr>
                    <tr>
                        <td style="vertical-align: top; padding-top: 5px;">
                            Logo
                        </td>
                        <td style="padding-top: 15px;">
                            <asp:Image ID="Photo" runat="server" Height="50px" Width="50px" />
                            <input type="hidden" id="Hidden" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="headtd" colspan="2">
                            Type of business, status & company
                        </td>
                    </tr>
                    <tr>
                 
                        <td>
                            Type Of Business <span class="required">*</span>
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UPanelBuisness" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="DDLTypeOfBuisness" runat="server" CssClass="input" OnSelectedIndexChanged="DDLTypeOfBuisness_SelectedIndexChanged"
                                        AutoPostBack="True" />
                                    <asp:TextBox ID="TxtOthers" runat="server" Visible="False" CssClass="input" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Status<span class="required">*</span>
                        </td>
                        <td>
                            <asp:UpdatePanel ID="UPanelStatus" runat="server">
                                <ContentTemplate>
                                    <asp:DropDownList ID="DDLStatus" runat="server" CssClass="input" OnSelectedIndexChanged="DDLStatus_SelectedIndexChanged"
                                        AutoPostBack="True" />
                                    <asp:TextBox ID="TxtStatus" runat="server" Visible="False" CssClass="input" Width="88px" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td class="headtd" colspan="2">
                            Maintain
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:CheckBoxList ID="chk" runat="server" Enabled="false">
                                <asp:ListItem Text="Accounting" Value="1"></asp:ListItem>
                                <asp:ListItem Text="Invoicing" Value="2"></asp:ListItem>
                                <asp:ListItem Text="Inventory" Value="3"></asp:ListItem>
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td class="headtd" colspan="2">
                            Financial year
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Accounting Year Starting From <span class="required">*</span>
                        </td>
                        <td>
                            
                            <asp:TextBox ID="TxtAccountingYearStarting" ToolTip="Enter Starting Date Of Accounting year"
                                runat="server" onBlur="GetFinancialYearStarting()" CssClass="input" Width="80px" />
                            <asp:ImageButton ID="ImgBtnAccountingYearStarting" runat="server" ImageUrl="~/Images/calendar.gif" />
                            <ajaxToolkit:CalendarExtender ID="CalExtAccountingYearStarting" runat="server" TargetControlID="TxtAccountingYearStarting"
                                PopupButtonID="ImgBtnAccountingYearStarting" Enabled="True" Format="dd/MM/yyyy"/>          
                           <ajaxToolkit:MaskedEditExtender ID="AccountStartMask" runat="server" CultureName="en-GB"
                                Enabled="True" TargetControlID="TxtAccountingYearStarting" MaskType="Date" DisplayMoney="Left"
                                AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" CultureAMPMPlaceholder="AM;PM"
                                CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="."
                                CultureThousandsPlaceholder="," CultureTimePlaceholder=":">
                            </ajaxToolkit:MaskedEditExtender>
                            <ajaxToolkit:MaskedEditValidator ID="AccountStartValmask" runat="server" ControlExtender="AccountStartMask"
                                ControlToValidate="TxtAccountingYearStarting" EmptyValueMessage="Date is Required"
                                InvalidValueMessage="Date is Invalid" Display="Dynamic" EmptyValueBlurredText="*"
                                ValidationGroup="CompanyInfo" ErrorMessage="AccountStartValmask" />
                            <asp:RequiredFieldValidator ID="RFVAccountingYear" runat="server" ValidationGroup="CompanyInfo"
                                ControlToValidate="TxtAccountingYearStarting" ErrorMessage="Provide Year" />
                           <%-- <script type="text/javascript" language="javascript">
                                function GetFinancialYearStarting() {
                                    var fyear_start = document.getElementById('<%=TxtAccountingYearStarting.ClientID%>').value;
                                    //alert(year);
                                    if (fyear_start != '') {
                                        var selectedDateTime = fyear_start;
                                        var splitarray = new Array();
                                        splitarray = selectedDateTime.split("/");
                                        var sdate = splitarray[0];
                                        var smonth = splitarray[1];
                                        var syear = splitarray[2];
                                        if (sdate != '' && smonth != '' && syear != '') {
                                            var s_date = parseInt(sdate);
                                            var s_month = parseInt(smonth);
                                            var s_year = parseInt(syear);
                                            var end_year = "";
                                            if (s_month >= 4) {
                                                end_year = s_year + 1;
                                            }
                                            else {
                                                end_year = s_year;
                                            }

                                            if (!isNaN(s_date) && !isNaN(s_month) && !isNaN(s_year)) {
                                                document.getElementById('<%=TxtAccountingLast.ClientID%>').value = "31/03/" + end_year;
                                            }
                                        }
                                    }
                                }
                           
                            
                            </script>--%>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Last day of Accounting Period <span class="required">*</span>
                        </td>
                        <td>
                            <asp:TextBox ID="TxtAccountingLast" ToolTip="Enter Ending Date Of Accounting year"
                                runat="server" CssClass="input" Width="80px" />
                            <asp:ImageButton ID="ImgAccountingLast" runat="server" ImageUrl="~/Images/calendar.gif" />
                            <ajaxToolkit:CalendarExtender ID="CalExtAccountingLast" runat="server" TargetControlID="TxtAccountingLast"
                                PopupButtonID="ImgAccountingLast" Enabled="True" Format="dd/MM/yyyy" />
                           <ajaxToolkit:MaskedEditExtender ID="MaskEditExtAccountLast" runat="server" CultureName="en-GB"
                                Enabled="True" TargetControlID="TxtAccountingLast" MaskType="Date" ErrorTooltipEnabled="True"
                                Mask="99/99/9999" CultureDateFormat="DMY" CultureDatePlaceholder="/">
                            </ajaxToolkit:MaskedEditExtender>
                            <ajaxToolkit:MaskedEditValidator ID="MaskEditValAccountLast" runat="server" ControlExtender="MaskEditExtAccountLast"
                                ControlToValidate="TxtAccountingLast" EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                                Display="Dynamic" EmptyValueBlurredText="*" ValidationGroup="CompanyInfo" ErrorMessage="MaskEditValAccountLast" />
                            <asp:RequiredFieldValidator ID="RFVLastAccounting" runat="server" ValidationGroup="CompanyInfo"
                                ControlToValidate="TxtAccountingLast" ErrorMessage="Select Last Accounting Period" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="BtnUpdate" runat="server" CssClass="button" ValidationGroup="CompanyInfo"
                                Text="Update" OnClick="BtnUpdate_Click"></asp:Button>
                            &nbsp; &nbsp;
                            <asp:Button ID="BtnCancel" runat="server" Text="Close" CssClass="button" OnClick="BtnCancel_Click"
                                CausesValidation="false" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tab-content" id="tabs2">
                <table class="tablecontent" style="width: 100%;">
                    <tr>
                        <td class="headtd" colspan="2">
                            Address Details
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Address Line1
                        </td>
                        <td>
                            <asp:TextBox ID="TxtAdress1" ToolTip="Enter Address" runat="server" CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Address Line2
                        </td>
                        <td>
                            <asp:TextBox ID="TxtAddress2" ToolTip="Enter Address" runat="server" CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Address Line3
                        </td>
                        <td>
                            <asp:TextBox ID="TxtAddress3" ToolTip="Enter Address" runat="server" CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Address Line4
                        </td>
                        <td>
                            <asp:TextBox ID="TxtAddress4" ToolTip="Enter Address" runat="server" CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Place
                        </td>
                        <td>
                            <asp:TextBox ID="TxtPlace" runat="server" ToolTip="Enter Place" CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Pincode
                        </td>
                        <td>
                            <asp:TextBox ID="TxtPincode" runat="server" MaxLength="6" onKeyPress="return isNumberKey(this.id,event)"
                                ToolTip="Enter Pincode" CssClass="input"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Country
                        </td>
                        <td>
                            <asp:DropDownList ID="DDLCountry" runat="server" ToolTip="Enter Country Name" CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Lblstate" runat="server" Text="State" />
                        </td>
                        <td>
                            <asp:DropDownList ID="DDLState" runat="server" CssClass="input">
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td class="headtd" colspan="2">
                            Phone & Fax Numbers
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Phone
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxPhone" ToolTip="Enter Contact No." MaxLength="30" runat="server"
                                CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Fax
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxFax" ToolTip="Enter Fax" runat="server" CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td class="headtd" colspan="2">
                            E mail & Internet
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Email
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxEmail" ToolTip="Enter Email" runat="server" CssClass="input" />
                            <asp:RegularExpressionValidator ID="RFVEmail" runat="server" ErrorMessage="*" ControlToValidate="TextBoxEmail"
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Website
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxWebsite" runat="server" ToolTip="Enter Website" CssClass="input" />
                            <asp:RegularExpressionValidator ID="REVWebsite" runat="server" ErrorMessage="*" ControlToValidate="TextBoxWebsite"
                                ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                        </td>
                    </tr>
                    <tr>
                        <td class="headtd" colspan="2">
                            Others
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Business Activity
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxBuisnessActivity" ToolTip="Enter Buisness Activity" runat="server"
                                CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="LblMiscellaneous" runat="server" Text="Miscellaneous" />
                        </td>
                        <td>
                            <asp:TextBox ID="TxtMiscellaneous1" ToolTip="Enter Miscellaneous" runat="server"
                                CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Miscellaneous
                        </td>
                        <td>
                            <asp:TextBox ID="TxtMiscellaneous2" ToolTip="Enter Miscellaneous" runat="server"
                                CssClass="input" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="ButtonUpdate" runat="server" Text="Update" CssClass="button" OnClick="ButtonUpdate_Click" />
                            &nbsp;
                            <asp:Button ID="Button2" runat="server" Text="Close" CssClass="button" OnClick="Button2_Click"
                                CausesValidation="false" />
                        </td>
                    </tr>
                </table>
            </div>
            <div class="tab-content" id="tabs3">
                <asp:UpdatePanel ID="UpdPanelRegDetails" runat="server">
                    <ContentTemplate>
                        <table class="tablecontent" style="width: 100%;">
                            <tr>
                                <td class="headtd" colspan="4">
                                    Registraion Detail
                                </td>
                            </tr>
                            <tr>
                                <td>CIN No</td>
                                <td> 
                                    <asp:TextBox ID="txtcinno" ToolTip="Corporate Identity Number" CssClass="input"  runat="server"></asp:TextBox>
                                </td>
                                <td></td>
                                <td></td>
                            </tr>
                            <tr>
                                <td>
                                    Permanent A/c No.
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtPermanant" runat="server" ToolTip="Enter Permanent A/c No." CssClass="input" />
                                </td>
                                <td>
                                    Date
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtDatePermanant" runat="server" ToolTip="Enter Permanent A/c No. Date"
                                        CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnDatePermanant" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxToolkit:CalendarExtender ID="CalExtDatePermanent" runat="server" TargetControlID="TxtDatePermanant"
                                        PopupButtonID="ImgBtnDatePermanant" Format="dd/MM/yyyy" Enabled="True">
                                    </ajaxToolkit:CalendarExtender>
                                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtParmanent" runat="server" CultureName="en-GB"
                                        Enabled="True" TargetControlID="TxtDatePermanant" MaskType="Date" DisplayMoney="Left"
                                        AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" CultureAMPMPlaceholder="AM;PM"
                                        CultureDateFormat="DMY" CultureDatePlaceholder="/" CultureDecimalPlaceholder="."
                                        CultureThousandsPlaceholder="," CultureTimePlaceholder=":">
                                    </ajaxToolkit:MaskedEditExtender>
                                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValParmanant" runat="server" ControlExtender="MaskEditExtParmanent"
                                        ControlToValidate="TxtDatePermanant" EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                                        Display="Dynamic" EmptyValueBlurredText="*" ErrorMessage="MaskEditValParmanant">
                    &nbsp;&nbsp;
                                    </ajaxToolkit:MaskedEditValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    Tax Deduction A/C
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtTaxdeduction" runat="server" ToolTip="Enter Tax Deduction A/c No."
                                        CssClass="input" />
                                </td>
                                <td>
                                    Date
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtdateTaxDeduction" runat="server" ToolTip="Enter Tax Deduction A/c No. Date"
                                        CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnTaxDeduction" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxToolkit:CalendarExtender ID="CalExtTaxDeduction" runat="server" TargetControlID="TxtdateTaxDeduction"
                                        PopupButtonID="ImgBtnTaxDeduction" Format="dd/MM/yyyy" Enabled="True">
                                    </ajaxToolkit:CalendarExtender>
                                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtTax" runat="server" CultureName="en-GB"
                                        Enabled="True" TargetControlID="TxtdateTaxDeduction" MaskType="Date" DisplayMoney="Left"
                                        AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" CultureAMPMPlaceholder="AM;PM"
                                        CultureDateFormat="DMY" CultureDatePlaceholder="/">
                                    </ajaxToolkit:MaskedEditExtender>
                                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValTax" runat="server" ControlExtender="MaskEditExtTax"
                                        ControlToValidate="TxtdateTaxDeduction" EmptyValueMessage="Date is Required"
                                        InvalidValueMessage="Date is Invalid" Display="Dynamic" EmptyValueBlurredText="*"
                                        ErrorMessage="MaskEditValTax">
                    &nbsp;&nbsp;
                                    </ajaxToolkit:MaskedEditValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKVat" AutoPostBack="true" runat="server" Text="VAT TIN"></asp:CheckBox>
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtBoxVat" runat="server" CssClass="input" ToolTip="Enter Vat No." />
                                </td>
                                <td>
                                    <asp:Label ID="LblVatDate" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtVatDate" runat="server" CssClass="input" ToolTip="Enter Vat No. Date"
                                        Width="80px" />
                                    <asp:ImageButton ID="ImgBtnVatDate" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxToolkit:CalendarExtender ID="CalExtVatDate" runat="server" TargetControlID="TxtVatDate"
                                        PopupButtonID="ImgBtnVatDate" Format="dd/MM/yyyy" Enabled="True">
                                    </ajaxToolkit:CalendarExtender>
                                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtVat" runat="server" CultureName="en-GB"
                                        Enabled="True" TargetControlID="TxtVatDate" MaskType="Date" DisplayMoney="Left"
                                        AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" CultureAMPMPlaceholder="AM;PM"
                                        CultureCurrencySymbolPlaceholder="£" CultureDateFormat="DMY" CultureDatePlaceholder="/"
                                        CultureDecimalPlaceholder="." CultureThousandsPlaceholder="," CultureTimePlaceholder=":">
                                    </ajaxToolkit:MaskedEditExtender>
                                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValVat" runat="server" ControlExtender="MaskEditExtVat"
                                        ControlToValidate="TxtVatDate" EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                                        Display="Dynamic" EmptyValueBlurredText="*" ErrorMessage="MaskEditValVat">
                    &nbsp;&nbsp;
                                    </ajaxToolkit:MaskedEditValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKInterstate" runat="server" AutoPostBack="true" Text="Inter-State tax regn." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxinnerState" runat="server" ToolTip="Enter Inter-State tax regn No."
                                        CssClass="input" />
                                </td>
                                <td>
                                    <asp:Label ID="LblInterstateDate" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxInterStateDate" runat="server" CssClass="input" Width="80px"
                                        ToolTip="Enter Inter-State tax regn No. Date" />
                                    <asp:ImageButton ID="ImgBtnInterState" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxToolkit:CalendarExtender ID="CalExtInnerState" runat="server" TargetControlID="TextBoxInterStateDate"
                                        PopupButtonID="ImgBtnInterState" Format="dd/MM/yyyy" Enabled="True">
                                    </ajaxToolkit:CalendarExtender>
                                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtState" runat="server" CultureName="en-GB"
                                        Enabled="True" TargetControlID="TextBoxInterStateDate" MaskType="Date" DisplayMoney="Left"
                                        AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" CultureAMPMPlaceholder="AM;PM"
                                        CultureDateFormat="DMY" CultureDatePlaceholder="/">
                                    </ajaxToolkit:MaskedEditExtender>
                                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValState" runat="server" ControlExtender="MaskEditExtState"
                                        ControlToValidate="TextBoxInterStateDate" EmptyValueMessage="Date is Required"
                                        InvalidValueMessage="Date is Invalid" Display="Dynamic" EmptyValueBlurredText="*"
                                        ErrorMessage="MaskEditValState">
                    &nbsp;&nbsp;
                                    </ajaxToolkit:MaskedEditValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKServiceTax" runat="server" AutoPostBack="true" Text="Service Tax Regn. No." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxServiceTax" runat="server" ToolTip="Enter Service Tax Regn. No."
                                        CssClass="input" />
                                </td>
                                <td>
                                    <asp:Label ID="LblServiceTaxDate" runat="server" ToolTip="Enter Service Tax Regn. No. Date"
                                        Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtDateServiceTax" runat="server" CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnServiceTax" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxToolkit:CalendarExtender ID="CalExtServiceTax" runat="server" TargetControlID="TxtDateServiceTax"
                                        PopupButtonID="ImgBtnServiceTax" Format="dd/MM/yyyy" Enabled="True">
                                    </ajaxToolkit:CalendarExtender>
                                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtService" runat="server" CultureName="en-GB"
                                        Enabled="True" TargetControlID="TextBoxInterStateDate" MaskType="Date" DisplayMoney="Left"
                                        AcceptNegative="Left" ErrorTooltipEnabled="True" Mask="99/99/9999" CultureAMPMPlaceholder="AM;PM"
                                        CultureDateFormat="DMY" CultureDatePlaceholder="/">
                                    </ajaxToolkit:MaskedEditExtender>
                                    <ajaxToolkit:MaskedEditValidator ID="MaskEditValServiceTax" runat="server" ControlExtender="MaskEditExtService"
                                        ControlToValidate="TxtDateServiceTax" EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                                        Display="Dynamic" EmptyValueBlurredText="*" ErrorMessage="MaskEditValServiceTax">
                    &nbsp;&nbsp;
                                    </ajaxToolkit:MaskedEditValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKCentralExcise" runat="server" AutoPostBack="true" Text="Central Excise PA No." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxCentralExcise" runat="server" ToolTip="Enter Central Excise PA No."
                                        CssClass="input" />
                                </td>
                                <td>
                                    <asp:Label ID="LBLCentralExcise" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="TxtDateCentralExcise" runat="server" ToolTip="Enter Central Excise PA No. Date"
                                        CssClass="input" Width="80px" />
                                    <asp:ImageButton ID="ImgBtnCentralExcise" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxToolkit:CalendarExtender ID="CalExtCentralExcise" runat="server" TargetControlID="TxtDateCentralExcise"
                                        PopupButtonID="ImgBtnCentralExcise" Format="dd/MM/yyyy" Enabled="True">
                                    </ajaxToolkit:CalendarExtender>
                                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtCentralExcise" runat="server" CultureName="en-GB"
                                        Enabled="True" TargetControlID="TxtDateCentralExcise" MaskType="Date" ErrorTooltipEnabled="True"
                                        Mask="99/99/9999" CultureAMPMPlaceholder="AM;PM" CultureDateFormat="DMY" CultureDatePlaceholder="/">
                                    </ajaxToolkit:MaskedEditExtender>
                                    <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator1" runat="server" ControlExtender="MaskEditExtCentralExcise"
                                        ControlToValidate="TxtDateCentralExcise" EmptyValueMessage="Date is Required"
                                        InvalidValueMessage="Date is Invalid" Display="Dynamic" EmptyValueBlurredText="*"
                                        ErrorMessage="MaskedEditValidator1">
                    &nbsp;&nbsp;
                                    </ajaxToolkit:MaskedEditValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <asp:CheckBox ID="CHKLuxuryTax" runat="server" AutoPostBack="true" Text="Luxury Tax regn. No." />
                                </td>
                                <td>
                                    <asp:TextBox ID="TextBoxLuxuryTax" runat="server" ToolTip="Enter Luxury Tax regn No."
                                        CssClass="input" />
                                </td>
                                <td>
                                    <asp:Label ID="LblDateLuxuryTax" runat="server" Text="Date" />
                                </td>
                                <td>
                                    <asp:TextBox ID="DateLuxuryTax" runat="server" CssClass="input" ToolTip="Enter Luxury Tax regn No. Date"
                                        Width="80px" />
                                    <asp:ImageButton ID="ImgBtnLuxuryTax" runat="server" ImageUrl="~/Images/calendar.gif" />
                                    <ajaxToolkit:CalendarExtender ID="CalExtLuxuryTax" runat="server" TargetControlID="DateLuxuryTax"
                                        PopupButtonID="ImgBtnLuxuryTax" Format="dd/MM/yyyy" Enabled="True">
                                    </ajaxToolkit:CalendarExtender>
                                    <ajaxToolkit:MaskedEditExtender ID="MaskEditExtLuxury" runat="server" CultureName="en-GB"
                                        Enabled="True" TargetControlID="DateLuxuryTax" MaskType="Date" ErrorTooltipEnabled="True"
                                        Mask="99/99/9999" CultureDateFormat="DMY" CultureDatePlaceholder="/">
                                    </ajaxToolkit:MaskedEditExtender>
                                    <ajaxToolkit:MaskedEditValidator ID="MaskedEditValidator2" runat="server" ControlExtender="MaskEditExtLuxury"
                                        ControlToValidate="DateLuxuryTax" EmptyValueMessage="Date is Required" InvalidValueMessage="Date is Invalid"
                                        Display="Dynamic" EmptyValueBlurredText="*" ErrorMessage="MaskedEditValidator2">
                    &nbsp;&nbsp;
                                    </ajaxToolkit:MaskedEditValidator>
                                </td><
                            </tr>
                        </table>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <div align="center">
                    <asp:Button ID="UpdateBtn" runat="server" Text="Update" CssClass="button" OnClick="UpdateBtn_Click" />
                    &nbsp; &nbsp;
                    <asp:Button ID="Button4" runat="server" Text="Close" CssClass="button" OnClick="Button4_Click"
                        CausesValidation="false" />
                </div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
